/
MessageHandler`2.xml
49 lines (49 loc) · 2.67 KB
/
MessageHandler`2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<Type Name="MessageHandler<TRecipient,TMessage>" FullName="Microsoft.Toolkit.Mvvm.Messaging.MessageHandler<TRecipient,TMessage>">
<TypeSignature Language="C#" Value="public delegate void MessageHandler<in TRecipient,in TMessage>(TRecipient recipient, TMessage message) where TRecipient : class where TMessage : class;" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed MessageHandler`2<class - TRecipient, class - TMessage> extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:Microsoft.Toolkit.Mvvm.Messaging.MessageHandler`2" />
<TypeSignature Language="VB.NET" Value="Public Delegate Sub MessageHandler(Of In TRecipient, In TMessage)(recipient As TRecipient, message As TMessage)" />
<TypeSignature Language="F#" Value="type MessageHandler<'Recipient, 'Message (requires 'Recipient : null and 'Message : null)> = delegate of 'Recipient * 'Message -> unit" />
<AssemblyInfo>
<AssemblyName>Microsoft.Toolkit.Mvvm</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeParameters>
<TypeParameter Name="TRecipient">
<Constraints>
<ParameterAttribute>Contravariant</ParameterAttribute>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
</Constraints>
</TypeParameter>
<TypeParameter Name="TMessage">
<Constraints>
<ParameterAttribute>Contravariant</ParameterAttribute>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
</Constraints>
</TypeParameter>
</TypeParameters>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="recipient" Type="TRecipient" />
<Parameter Name="message" Type="TMessage" />
</Parameters>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Docs>
<typeparam name="TRecipient">The type of recipient for the message.</typeparam>
<typeparam name="TMessage">The type of message to receive.</typeparam>
<param name="recipient">The recipient that is receiving the message.</param>
<param name="message">The message being received.</param>
<summary>
A <see langword="delegate" /> used to represent actions to invoke when a message is received.
The recipient is given as an input argument to allow message registrations to avoid creating
closures: if an instance method on a recipient needs to be invoked it is possible to just
cast the recipient to the right type and then access the local method from that instance.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>